<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />
		
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="static/css/datepicker.css" /><!-- 日期框 -->
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		
<script type="text/javascript">
	
	
	//保存
	function save(){
			if($("#S_TITLE").val()==""){
			$("#S_TITLE").tips({
				side:3,
	            msg:'请输入标题',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#S_TITLE").focus();
			return false;
		}
		if($("#S_DESCRIPTION").val()==""){
			$("#S_DESCRIPTION").tips({
				side:3,
	            msg:'请输入描述',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#S_DESCRIPTION").focus();
			return false;
		}
		if($("#MISSION_ID").val()==""){
			$("#MISSION_ID").tips({
				side:3,
	            msg:'请输入任务',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#MISSION_ID").focus();
			return false;
		}
		if($("#POSTER_ID").val()==""){
			$("#POSTER_ID").tips({
				side:3,
	            msg:'请输入发布者',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#POSTER_ID").focus();
			return false;
		}
		if($("#STAR").val()==""){
			$("#STAR").tips({
				side:3,
	            msg:'请输入评分',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#STAR").focus();
			return false;
		}
		if($("#ADMITED").val()==""){
			$("#ADMITED").tips({
				side:3,
	            msg:'请输入是否采纳',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#ADMITED").focus();
			return false;
		}
		if($("#APPLYMONEY").val()==""){
			$("#APPLYMONEY").tips({
				side:3,
	            msg:'请输入获得奖金',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#APPLYMONEY").focus();
			return false;
		}
		if($("#GIT_ADDR").val()==""){
			$("#GIT_ADDR").tips({
				side:3,
	            msg:'请输入Git仓库地址',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#GIT_ADDR").focus();
			return false;
		}
		if($("#GIT_USERNAME").val()==""){
			$("#GIT_USERNAME").tips({
				side:3,
	            msg:'请输入Git仓库用户名',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#GIT_USERNAME").focus();
			return false;
		}
		if($("#GIT_PASSWORD").val()==""){
			$("#GIT_PASSWORD").tips({
				side:3,
	            msg:'请输入Git仓库密码',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#GIT_PASSWORD").focus();
			return false;
		}
		$("#Form").submit();
		$("#zhongxin").hide();
		$("#zhongxin2").show();
	}
	
</script>
	</head>
<body>
	<form action="solutionmanager/${msg }.do" name="Form" id="Form" method="post">
		<input type="hidden" name="SOLUTION_ID" id="SOLUTION_ID" value="${pd.SOLUTION_ID}"/>
		<div id="zhongxin">
		<table id="table_report" class="table table-striped table-bordered table-hover">
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">标题:</td>
				<td><input type="text" name="S_TITLE" id="S_TITLE" value="${pd.S_TITLE}" maxlength="32" placeholder="这里输入标题" title="标题"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">描述:</td>
				<td><input type="text" name="S_DESCRIPTION" id="S_DESCRIPTION" value="${pd.S_DESCRIPTION}" maxlength="32" placeholder="这里输入描述" title="描述"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">任务:</td>
				<td><input type="number" name="MISSION_ID" id="MISSION_ID" value="${pd.MISSION_ID}" maxlength="32" placeholder="这里输入任务" title="任务"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">发布者:</td>
				<td><input type="number" name="POSTER_ID" id="POSTER_ID" value="${pd.POSTER_ID}" maxlength="32" placeholder="这里输入发布者" title="发布者"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">评分:</td>
				<td><input type="number" name="STAR" id="STAR" value="${pd.STAR}" maxlength="32" placeholder="这里输入评分" title="评分"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">是否采纳:</td>
				<td><input type="number" name="ADMITED" id="ADMITED" value="${pd.ADMITED}" maxlength="32" placeholder="这里输入是否采纳" title="是否采纳"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">获得奖金:</td>
				<td><input type="number" name="APPLYMONEY" id="APPLYMONEY" value="${pd.APPLYMONEY}" maxlength="32" placeholder="这里输入获得奖金" title="获得奖金"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">Git仓库地址:</td>
				<td><input type="text" name="GIT_ADDR" id="GIT_ADDR" value="${pd.GIT_ADDR}" maxlength="32" placeholder="这里输入Git仓库地址" title="Git仓库地址"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">Git仓库用户名:</td>
				<td><input type="text" name="GIT_USERNAME" id="GIT_USERNAME" value="${pd.GIT_USERNAME}" maxlength="32" placeholder="这里输入Git仓库用户名" title="Git仓库用户名"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">Git仓库密码:</td>
				<td><input type="text" name="GIT_PASSWORD" id="GIT_PASSWORD" value="${pd.GIT_PASSWORD}" maxlength="32" placeholder="这里输入Git仓库密码" title="Git仓库密码"/></td>
			</tr>
			<tr>
				<td style="text-align: center;" colspan="10">
					<a class="btn btn-mini btn-primary" onclick="save();">保存</a>
					<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
				</td>
			</tr>
		</table>
		</div>
		
		<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
		
	</form>
	
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="static/js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<script type="text/javascript">
		$(top.hangge());
		$(function() {
			
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			
			//日期框
			$('.date-picker').datepicker();
			
		});
		
		</script>
</body>
</html>